package com.ibm.java;

import java.util.ArrayList;
import java.util.Collection;

public class Child extends Parent {

	int b;

	public Child() {
		b = 4;
	}

	public Collection<? extends Parent> getChildrean() {
		Collection<Child> retChilds = new ArrayList<Child>();
		retChilds.add(new Child());
		return retChilds;
	}

	public Collection<Parent> getChildrean2() {
		Collection<Child> retChilds = new ArrayList<Child>();
		retChilds.add(new Child());
		Collection<Parent> parents = new ArrayList<Parent>(retChilds);
		return parents;
	}

	public static void main(String[] args) {
		Child child = new Child();
		child.getChildrean();
		child.getChildrean2();
	}
}
